<include file="App/Home/View/Public/header.html"/>
			<!-- BEGIN PAGE CONTENT-->
			<div class="row">
				<div class="col-md-12">
					<div class="tabbable-line boxless tabbable-reversed">
						<div class="tab-content">
							<div class="tab-pane active" id="tab_0">
								<div class="portlet box green-haze">
									<div class="portlet-title">
										<div class="caption">
											<i class="fa fa-gift"></i>现金币挂买
										</div>
										<div class="tools">
											<a href="javascript:;" class="collapse">
											</a>
											<a href="#portlet-config" data-toggle="modal" class="config">
											</a>
											<a href="javascript:;" class="reload">
											</a>
											<a href="javascript:;" class="remove">
											</a>
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										
											<div class="form-horizontal">
											<div class="form-body">                                             
                                                 <!--<div class="form-group">
													<label class="col-md-3 control-label">汇款方式</label>
													<div class="radio-list">
											<label class="radio-inline" style=" margin-left:7px;">
											<input type="radio" name="optionsRadios" value="支付宝" checked>支付宝</label>
											<label class="radio-inline">
											<input type="radio" name="optionsRadios" value="微信">微信</label>
                                            <label class="radio-inline">
											<input type="radio" name="optionsRadios" value="银行卡">银行卡</label>
										</div>
												</div>-->
                                                 <div class="form-group">
													<label class="col-md-3 control-label">姓名</label>
													<div class="col-md-4">
														<input type="text" value="{$member['name']}" disabled="disabled" class="form-control input-circle" placeholder="">
													</div>
												</div>
                                                <div class="form-group">
													<label class="col-md-3 control-label">注册积分数量</label>
													<div class="col-md-4">
														<input type="text" value="{$member_account.account_type_1}" disabled="disabled" class="form-control input-circle" placeholder="">
													</div>
												</div>
                                                <div class="form-group">
													<label class="col-md-3 control-label">买入数量</label>
													<div class="col-md-4">
														<input type="text" id="num" name="num" class="form-control input-circle" placeholder="">
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-3 control-label">二级密码</label>
													<div class="col-md-4">
														<input type="password" id="password" name="password" class="form-control input-circle" placeholder="">
													</div>
												</div>
											</div>
											<div class="form-actions">
												<div class="row">
													<div class="col-md-offset-3 col-md-9">
														<button onclick="sub()" class="btn btn-circle blue">确认卖出</button>
														<!--<button type="button" class="btn btn-circle default">取消购买</button>-->
													</div>
												</div>
											</div>
										</div>
										<!-- END FORM-->
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
<include file="App/Home/View/Public/footer.html"/>
<script type="text/javascript">
 function sub(){
        var num = $("#num").val();
        var password = $("#password").val();
        var url = "{:U('LineDown/buyOrders')}";
        $.post(url,{'num':num,'password':password},function(data){
            layer.msg(data.info);
            if(data.status == 1){
            	setTimeout(function () { 
			         window.location.reload();
			    }, 2000);
            }
        });

    }

</script>